package com.hm.edu.fourcare;

import android.app.Activity;
import android.content.Intent;
import android.graphics.Color;
import android.os.Bundle;
import android.view.Menu;
import android.view.View;
import android.widget.Button;


public class MainMenu extends Activity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_main_menu);
	}

	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		// Inflate the menu; this adds items to the action bar if it is present.
		getMenuInflater().inflate(R.menu.main_menu, menu);
		return true;
	}
	
	/** Called when the user clicks the Vitalparameter button */
	public void openVitalparameter(View view) {
			
	    Intent intent = new Intent(this, Vitalparameter.class);
	    startActivity(intent);
	}
	
	/** Called when the user clicks the GeplMed button */
	public void openGeplMed (View view) {
			
		Intent intent = new Intent(this, Medikation.class);
		startActivity(intent);
	}
	
	/** Called when the user clicks the ExMed button */
	public void openExMed (View view) {
				
		Intent intent = new Intent(this, ExtraMedikation.class);
		startActivity(intent);
	}
	
	/** Called when the user clicks the Eisntellungen button */
	public void openEinstellungen (View view) {
		
		Intent intent = new Intent(this, Einstellungen.class);
		startActivity(intent);
	}
}
